<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
	<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("contextPath", request.getContextPath());
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

</head>
<body>
<c:forEach items="${ols}" var="orderline">
书名：<h1>${orderline.book.name}</h1>
购买数量：<h1>${orderline.amount}</h1>
总价：<h1>${orderline.bookPrice*orderline.amount}</h1>
<c:if test="${orderline.commentFlag==true }">已评论</c:if>
<c:if test="${orderline.commentFlag==false}">
<c:if test="${status==5}">
<a href="${contextPath }/order/addComment?bookId=${orderline.book.id}&orderlineId=${orderline.id}">发表评论</a>
</c:if>
</c:if>
<br/>
<------------------------------------------------------------------>
<br/>
</c:forEach>
</body>
</html>